Optimal. Leaf size=24 \[ -\frac {2 \tanh ^{-1}\left (\sqrt {x}\right )}{\sqrt {x}}-\log (1-x)+\log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {6037, 36, 31,
29} \begin {gather*} -\log (1-x)+\log (x)-\frac {2 \tanh ^{-1}\left (\sqrt {x}\right )}{\sqrt {x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 6037
Rubi steps
\begin {align*} \int \frac {\tanh ^{-1}\left (\sqrt {x}\right )}{x^{3/2}} \, dx &=-\frac {2 \tanh ^{-1}\left (\sqrt {x}\right )}{\sqrt {x}}+\int \frac {1}{(1-x) x} \, dx\\ &=-\frac {2 \tanh ^{-1}\left (\sqrt {x}\right )}{\sqrt {x}}+\int \frac {1}{1-x} \, dx+\int \frac {1}{x} \, dx\\ &=-\frac {2 \tanh ^{-1}\left (\sqrt {x}\right )}{\sqrt {x}}-\log (1-x)+\log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 24, normalized size = 1.00 \begin {gather*} -\frac {2 \tanh ^{-1}\left (\sqrt {x}\right )}{\sqrt {x}}-\log (1-x)+\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 29, normalized size = 1.21
method | result | size |
derivativedivides | \(-\frac {2 \arctanh \left (\sqrt {x}\right )}{\sqrt {x}}+\ln \left (x \right )-\ln \left (\sqrt {x}+1\right )-\ln \left (\sqrt {x}-1\right )\) | \(29\) |
default | \(-\frac {2 \arctanh \left (\sqrt {x}\right )}{\sqrt {x}}+\ln \left (x \right )-\ln \left (\sqrt {x}+1\right )-\ln \left (\sqrt {x}-1\right )\) | \(29\) |
meijerg | \(\frac {\ln \left (1-\sqrt {x}\right )-\ln \left (\sqrt {x}+1\right )}{\sqrt {x}}-\ln \left (1-x \right )+\ln \left (x \right )+i \pi \) | \(37\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.25, size = 18, normalized size = 0.75 \begin {gather*} -\frac {2 \, \operatorname {artanh}\left (\sqrt {x}\right )}{\sqrt {x}} - \log \left (x - 1\right ) + \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 37, normalized size = 1.54 \begin {gather*} -\frac {x \log \left (x - 1\right ) - x \log \left (x\right ) + \sqrt {x} \log \left (-\frac {x + 2 \, \sqrt {x} + 1}{x - 1}\right )}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 126 vs.
\(2 (20) = 40\).
time = 0.42, size = 126, normalized size = 5.25 \begin {gather*} - \frac {2 x^{\frac {3}{2}} \operatorname {atanh}{\left (\sqrt {x} \right )}}{x^{2} - x} + \frac {2 \sqrt {x} \operatorname {atanh}{\left (\sqrt {x} \right )}}{x^{2} - x} + \frac {x^{2} \log {\left (x \right )}}{x^{2} - x} - \frac {2 x^{2} \log {\left (\sqrt {x} + 1 \right )}}{x^{2} - x} + \frac {2 x^{2} \operatorname {atanh}{\left (\sqrt {x} \right )}}{x^{2} - x} - \frac {x \log {\left (x \right )}}{x^{2} - x} + \frac {2 x \log {\left (\sqrt {x} + 1 \right )}}{x^{2} - x} - \frac {2 x \operatorname {atanh}{\left (\sqrt {x} \right )}}{x^{2} - x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 72 vs.
\(2 (20) = 40\).
time = 0.42, size = 72, normalized size = 3.00 \begin {gather*} \frac {2 \, \log \left (-\frac {\sqrt {x} + 1}{\sqrt {x} - 1}\right )}{\frac {\sqrt {x} + 1}{\sqrt {x} - 1} + 1} - 2 \, \log \left (\frac {\sqrt {x} + 1}{{\left | \sqrt {x} - 1 \right |}}\right ) + 2 \, \log \left ({\left | -\frac {\sqrt {x} + 1}{\sqrt {x} - 1} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.79, size = 22, normalized size = 0.92 \begin {gather*} 2\,\ln \left (\sqrt {x}\right )-\ln \left (x-1\right )-\frac {2\,\mathrm {atanh}\left (\sqrt {x}\right )}{\sqrt {x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________